function initJingdianModel(sequelize, DataTypes) {
    const Jingdian = sequelize.define('travel', {
        jid: {
            type: DataTypes.INTEGER,
            primaryKey: true,
            autoIncrement: true,
            field: 'jid'
        },
        name: {
            type: DataTypes.STRING(255),
            allowNull: false,
            comment: '景点名称'
        },
        desc: {
            type: DataTypes.TEXT,
            comment: '景点简述'
        },
        category: {
            type: DataTypes.STRING(100),
            comment: '景点类别'
        },
        content: {
            type: DataTypes.TEXT,
            comment: '景点内容'
        },
        logoRemoteImageUrl: {
            type: DataTypes.STRING(500),
            field: 'logoRemoteImageUrl',
            comment: 'Logo图'
        },
    }, {
        tableName: 'travel',
        timestamps: false
    });
    
    return Jingdian;
}

module.exports = initJingdianModel;